#include <cstring>
#include <iostream>

int main()
{
    const char *src = "Hello";
    // char src[] = {'h', 'e', 'l', 'l', 'o'}; // 错误没有/0
    char dest1[20];

    strcpy(dest1, src);
    std::cout << "After strcpy, dest1: " << dest1 << std::endl;

    int src2[] = {1, 2, 3, 4, 5};
    int dest2[5];
    memcpy(dest2, src2, sizeof(src2));
    std::cout << "After memcpy, dest2: " << dest2[0] << ", " << dest2[1] << ", " << dest2[2] << ", " << dest2[3] << ", " << dest2[4] << std::endl;

    return 0;
}